Prev | Next

Other Creative Uses For Flags

<< | >>

Creating A Balloon String With A Thin Flag

Overview

At its core, 3D Flag simulates springs pushing and pulling points in space. When you lay out a grid of these springy points, you get cloth. String can be simulated with springs as well. This section demonstrates how you can create something that looks and acts like string with a very thin flag.

Setting Up The Scene

  1. Open the "Balloon.aep" project in the "Flag Tutorials" folder.

    When the project opens it should look like this.



    The project consists of a sky background, an animated balloon, and a layer that we'll use to specify the string color and size. There is also a layer (hidden for now) that we'll use as our flag layer. Our goal is to turn the string into a thin flag, and then attach it to the balloon.

Creating The String

We have our string in the scene already. It's a thin Solid. We want to use it to create a flag.

  1. Turn off the visibility of the "String Solid" layer. Turn on the visibility of the "Flag Solid" layer. Then, apply the 3D Flag effect to the "Flag Solid" layer. The white layer will turn into a flag.
  2. In the Effect Controls window, find the Color From Layer menu and select "String Solid." The big white flag turns into a thin white flag. We now want to make this thin flag look and act like a string.
  3. Locate the Lock Edges menu and elect "Top." Then find the Lock Points menu and select "All Edge Points." You'll see the white flag start to look like a long string in the middle of the screen.
  4. Let's turn the wind into to a very slight breeze. Set Wind Speed to 1.

Attaching The String To The Balloon

We want the string to be attached to the bottom of the balloon and sway in the wind as the balloon animates across the screen.

  1. In the Attach To Layer menu, select "Balloon.tga.". The string will now travel with the balloon. To make the top of the string line up with the bottom of the balloon, we'll use the Offset X and Offset Y parameters.
  2. Use the Offset X and Offset Y controls to move the string so that the top of the string hangs from the bottom of the balloon. An Offset X value of -3 and an Offset Y value of -278 should be about right.



    The string now follows the balloon as it floats across the screen. The bottom portion of the string sways with the movement of the balloon. Pretty cool, huh?

Making balloon strings is just the start. In the next section, Transitioning Between Two Layers, you'll see how you can take advantage of wind and gravity to transition from one layer to another.